package com.siao.mvc
{
	import com.siao.mvc.core.IContext;
	import com.siao.mvc.core.IMember;
	import com.siao.mvc.managers.ModelManager;
	import com.siao.mvc.notice.Notifier;
	
	/**
	 * 模型
	 * @author SiaoLeon
	 */
	public class Model extends Notifier implements IMember
	{
		// -------------------------------------------------------------------------------------------------------- 静态常量
		
		// -------------------------------------------------------------------------------------------------------- 静态变量
		
		// -------------------------------------------------------------------------------------------------------- 静态方法
		
		// -------------------------------------------------------------------------------------------------------- 静态函数
		
		// -------------------------------------------------------------------------------------------------------- 属性
		
		public function get context():IContext
		{
			return ModelManager.instance.getContext(this);
		}
		
		// -------------------------------------------------------------------------------------------------------- 变量
		
		// -------------------------------------------------------------------------------------------------------- 构造
		
		// -------------------------------------------------------------------------------------------------------- 方法
		
		public function onAdd():void
		{
		}
		
		public function onRemove():void
		{
		}
	
		// -------------------------------------------------------------------------------------------------------- 函数
	
	}
}
